<?php if(!defined('BASEPATH'))exit('No direct script access allowed');
class gioithieu extends CI_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->load->library('addin');
	}
	public function index()
	{
		$this->load->model('gioithieu_model');
		$this->load->model('hotro_model');
        $this->load->model('sanpham_model');
		$data2['noidung'] = $this->gioithieu_model->select();
        $data1['noibat'] = $this->sanpham_model->getNoiBat();
		$data1['counter'] = $this->addin->getcounter();
		$data1['online'] = $this->addin->getonline();
		$data1['menu1'] = $this->addin->getMenuMain();
		$data1['menu2'] = $this->addin->getMenu3Cap();
		$data1['thongke'] = $this->addin->thongKe();
		$this->load->view('required/header-trangcon',$data1);
		$this->load->view('gioithieu/index',$data2);
		$this->load->view('required/footer',TRUE);
		//$noidung : string
		//counter : int : So nguoi da truy cap
		//online : int : So nguoi dang online
		//$menu1 : string (Chỉnh sửa lại chuỗi xuất ra)
		//$menu2 : string (Chỉnh sửa lại chuỗi xuất ra)
	}
}